#ifndef PRODUCTSERVICE_H
#define PRODUCTSERVICE_H

#include <QVariant>
#include "entity/Product.h"
#include "entity/ProductReview.h"
#include "dal/dao/ProductDataAccess.h"

// 商品业务类
class ProductService
{
public:
    QList<Product> getProducts(const QString &productType, const QString &productName, const QString &filterCriteria, const QString &sortBy);
    bool addProductReview(const int &productId, const int &userId, const QString &content);
    QList<ProductReview> getReviews(const int &productId);
    Product getProductById(const int &productId);
};

#endif // PRODUCTSERVICE_H
